#!/bin/bash

echo "========================================"
echo "正在打包项目..."
echo "========================================"

mvn clean package -DskipTests

if [ $? -eq 0 ]; then
    echo ""
    echo "========================================"
    echo "打包成功！"
    echo "========================================"
    echo "JAR 文件位置: target/demo-1.0.0.jar"
    echo ""
    echo "运行项目请执行: java -jar target/demo-1.0.0.jar"
    echo "或者运行: ./run.sh"
    echo ""
else
    echo ""
    echo "========================================"
    echo "打包失败，请检查错误信息！"
    echo "========================================"
fi

